package com.yyq.adms.bzgf.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.adms.yyb.utils.YYBUtils;
import com.yyq.sos.pojo.BaseEntity;

@Entity
@Table(name = "standardformation")
public class StandardFormation extends BaseEntity  implements java.io.Serializable{
	
	private static final long serialVersionUID = 1L;
	private String standardName;  //名称
	private String editorOrActor;  //主编或参编       1-主编      2--参编
	private String createOrModify;  //制定或修订    1--制定    2--修订  
	private String joinDep;  //参与单位
	private String members;  //规范组成员
	private Date startDate;  //开始时间
	private String taskDep;  //任务下达单位
	private String principal;  //负责人
	private String contractAmount;  //合同额
	private String schedules; //已完成进度
	private String step1;
	private String step2;
	private String step3;
	private String step4;
	private String step5;
	private String step6;
	private String step7;
	
	/**
	 * 批注
	 */
	private String endorse;
	
	
	/**
	 * 单位名称
	 */
	private String sentDepName;
	
	/*
	<option value="1" selected="selected" >立项批复</option>
	<option value="2">工作大纲</option>
	<option value="3">征求意见稿</option>
	<option value="4">送审稿</option>
	<option value="5">总校稿</option>
	<option value="6">报批稿</option>
	<option value="7">正式颁布</option>*/
	
	private Date endDate; //结束时间
	private String belongPlateFormID;  //所属平台
	private Integer isEnabled;  //
	private String sentDep; 
	
	
	private String belongYear;

	@Column(name = "belongyear")
	public String getBelongYear() {
		return belongYear;
	}

	public void setBelongYear(String belongYear) {
		this.belongYear = belongYear;
	}

	@Column(name = "standardname")
	public String getStandardName() {
		return standardName;
	}

	public void setStandardName(String standardName) {
		this.standardName = standardName;
	}

	@Column(name = "editororactor")
	public String getEditorOrActor() {
		return editorOrActor;
	}

	public void setEditorOrActor(String editorOrActor) {
		this.editorOrActor = editorOrActor;
	}

	@Column(name = "createormodify")
	public String getCreateOrModify() {
		return createOrModify;
	}

	public void setCreateOrModify(String createOrModify) {
		this.createOrModify = createOrModify;
	}

	@Column(name = "joindep")
	public String getJoinDep() {
		return joinDep;
	}

	public void setJoinDep(String joinDep) {
		this.joinDep = joinDep;
	}

	@Column(name = "members")
	public String getMembers() {
		return members;
	}

	public void setMembers(String members) {
		this.members = members;
	}

	@Column(name = "startdate")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
		String _year = YYBUtils.getFormatDateYear(startDate);
		this.setBelongYear(_year);
	}

	@Column(name = "taskdep")
	public String getTaskDep() {
		return taskDep;
	}

	public void setTaskDep(String taskDep) {
		this.taskDep = taskDep;
	}

	@Column(name = "principal")
	public String getPrincipal() {
		return principal;
	}

	public void setPrincipal(String principal) {
		this.principal = principal;
	}

	@Column(name = "contractamount")
	public String getContractAmount() {
		return contractAmount;
	}

	public void setContractAmount(String contractAmount) {
		this.contractAmount = contractAmount;
	}

	@Column(name = "schedules")
	public String getSchedules() {
		return schedules;
	}

	public void setSchedules(String schedules) {
		this.schedules = schedules;
	}

	@Column(name = "enddate")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Column(name = "belongplateformid")
	public String getBelongPlateFormID() {
		return belongPlateFormID;
	}

	public void setBelongPlateFormID(String belongPlateFormID) {
		this.belongPlateFormID = belongPlateFormID;
	}

	

	@Column(name = "isenabled")
	public Integer getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

	@Transient
	public String getSentDep() {
		return sentDep;
	}

	public void setSentDep(String sentDep) {
		this.sentDep = sentDep;
	}

	@Transient
	public String getStep1() {
		return step1;
	}

	public void setStep1(String step1) {
		this.step1 = step1;
	}

	@Transient
	public String getStep2() {
		return step2;
	}

	public void setStep2(String step2) {
		this.step2 = step2;
	}

	@Transient
	public String getStep3() {
		return step3;
	}

	public void setStep3(String step3) {
		this.step3 = step3;
	}

	@Transient
	public String getStep4() {
		return step4;
	}

	public void setStep4(String step4) {
		this.step4 = step4;
	}

	@Transient
	public String getStep5() {
		return step5;
	}

	public void setStep5(String step5) {
		this.step5 = step5;
	}

	@Transient
	public String getStep6() {
		return step6;
	}

	public void setStep6(String step6) {
		this.step6 = step6;
	}

	@Transient
	public String getStep7() {
		return step7;
	}

	public void setStep7(String step7) {
		this.step7 = step7;
	}

	@Column(name="endorse")
	public String getEndorse() {
		return endorse;
	}

	public void setEndorse(String endorse) {
		this.endorse = endorse;
	}

	@Column(name="sentdepname")
	public String getSentDepName() {
		return sentDepName;
	}

	public void setSentDepName(String sentDepName) {
		this.sentDepName = sentDepName;
	}
	
}
